﻿using System.Web.Mvc;
using Toolkit.Web.Infastructure;
using Toolkit.Web.ViewComponents;

namespace Toolkit.Web.Mvc.ViewComponents
{
    public static class ViewComponentFactoryExtensions
    {
        public static ViewComponentFactory Toolkit(this HtmlHelper htmlHelper)
        {
            return new ViewComponentFactory(new ViewComponentWriter(htmlHelper.ViewContext.Writer));
        }
    }
}
